//=============================================================================
#ifndef _CENTITY_H_
    #define _CENTITY_H_

#include "CArea.h"
#include "CFPS.h"
#include "CTexture.h"

//=============================================================================
class CEntity {
    public:
        static std::vector<CEntity>     EntityList;

        static CTexture                 Tex_Test;

    private:
        CTexture        Tex_Sprite;

    //Position - Dimensions
    public:
        float           X;
        float           Y;

        int             Width;
        int             Height;

    public:
        int             CurrentFrameCol;
        int             CurrentFrameRow;

        int             FrameCols;
        int             FrameRows;

        int             NumFrames;

    public:
        int             Col_X;
        int             Col_Y;
        int             Col_Width;
        int             Col_Height;

    public:
        CEntity();

        bool    OnLoad(char* File);

        void    OnLoop();

        void    OnRender();

        void    OnCleanup();

    public:
        void    OnMove(int SpeedX, int SpeedY);

    public:
        bool    Collides(int X, int Y, int Width, int Height);
};

//=============================================================================

#endif


